<extend name="layout/edit" />

<block name="HEADER">
   <style type="text/css">
        .xw-form .xw-btnRow{
           text-align: left !important;
            padding-left: 180px !important;
            background: none; 
            border: none;
        }
   </style>
</block>

<block name="CONTENT">
    <div style="padding: 10px;height: 100%;">
        <control:Form id="form"/>
    </div>
</block>


<block name="FOOTER">
   <script type="text/javascript">
    var  page = (function(ns){
        
        //页面初始化
        ns.init=function(){

        }
        
        //保存
        ns.save=function(){
            var data = form.getData();
            if(!data) return false;
            $.ajaxs("/admin/soft/param/saveTextParamValue",{
                param_scope:'系统基础配置',
                param_code:'system_base_config_site',
                param_value: JSON.stringify(form.getData())
            }).then(function(res){
                $.toast(1,'保存成功！');
            });
        }
        
        return ns;
    }({}));
    
    //加载当前页面需要的控件和配置
    $(function(){  page.init();  });
   </script>
</block>


